<?php
/* Smarty version 3.1.29, created on 2016-06-02 23:12:32
  from "F:\wwwroot\MVC\tpl\index\index.html" */

if ($_smarty_tpl->smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array (
  'has_nocache_code' => false,
  'version' => '3.1.29',
  'unifunc' => 'content_57504ce0407c15_19297158',
  'file_dependency' => 
  array (
    '0872c1b7847a2291d00ca4c3bfe01f0d25ea78ad' => 
    array (
      0 => 'F:\\wwwroot\\MVC\\tpl\\index\\index.html',
      1 => 1464880325,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
    'file:index/header.html' => 1,
  ),
),false)) {
function content_57504ce0407c15_19297158 ($_smarty_tpl) {
$_smarty_tpl->smarty->ext->_subtemplate->render($_smarty_tpl, "file:index/header.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
?>



<section class="rt_wrap content mCustomScrollbar">
 <div class="rt_content" style="margin:50px auto 0px; width:80%;">
    
    
      
     <section>
      <h2><strong style="color:grey;">添加新闻</strong></h2>      
       <table class="table">
       <tr>
        <th>作者</th>
        <th>标题</th>
        <th>内容</th>
       </tr>
       <?php
$_from = $_smarty_tpl->tpl_vars['data']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$__foreach_news_0_saved_item = isset($_smarty_tpl->tpl_vars['news']) ? $_smarty_tpl->tpl_vars['news'] : false;
$_smarty_tpl->tpl_vars['news'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['news']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['news']->value) {
$_smarty_tpl->tpl_vars['news']->_loop = true;
$__foreach_news_0_saved_local_item = $_smarty_tpl->tpl_vars['news'];
?>
       <tr>
        <td><?php echo $_smarty_tpl->tpl_vars['news']->value['adtuor'];?>
发布于  <?php echo $_smarty_tpl->tpl_vars['news']->value['dateline'];?>
</td>
        <td><a href="index.php?c=index&m=newsshow&id=<?php echo $_smarty_tpl->tpl_vars['news']->value['id'];?>
"/><?php echo $_smarty_tpl->tpl_vars['news']->value['title'];?>
</a></td>
        <td><?php echo $_smarty_tpl->tpl_vars['news']->value['content'];?>
</td>
       </tr>
	  <?php
$_smarty_tpl->tpl_vars['news'] = $__foreach_news_0_saved_local_item;
}
if (!$_smarty_tpl->tpl_vars['news']->_loop) {
?>
	   <tr>
        <td colspan=4>暂无新闻</td>
       </tr>
      <?php
}
if ($__foreach_news_0_saved_item) {
$_smarty_tpl->tpl_vars['news'] = $__foreach_news_0_saved_item;
}
?>
      </table>
     </section>
      <p><?php echo $_smarty_tpl->tpl_vars['about']->value;?>
</p>     
   <?php }
}
